<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>标题</title>

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="keywords" content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
  <meta name="description" content="">
  <meta name="author" content="ThemeBucket">
  <link rel="shortcut icon" href="#" type="/Job/Public/admin/image/png">

 <!--icheck-->
  <link href="/Job/Public/admin/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
  <link href="/Job/Public/admin/js/iCheck/skins/square/square.css" rel="stylesheet">
  <link href="/Job/Public/admin/js/iCheck/skins/square/red.css" rel="stylesheet">
  <link href="/Job/Public/admin/js/iCheck/skins/square/blue.css" rel="stylesheet">

  <!--dashboard calendar-->
  <link href="/Job/Public/admin/css/clndr.css" rel="stylesheet">

  <!--Morris Chart CSS -->
  <link rel="stylesheet" href="/Job/Public/admin/js/morris-chart/morris.css">

  <!--common-->
  <link href="/Job/Public/admin/css/style.css" rel="stylesheet">
  <link href="/Job/Public/admin/css/style-responsive.css" rel="stylesheet">
  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>
<body  class="sticky-header">

	 <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--search start-->
            <form class="searchform" action="index.html" method="post">
                <input type="text" class="form-control" name="keyword" placeholder="搜索" />
            </form>
            <!--search end-->

            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-tasks"></i>
                           
                        </a>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">You have 5 Mails </h5>
                            <ul class="dropdown-list normal-list">
                                <li class="new">
                                    <a href="">
                                        <span class="thumb"><img src="/Job/Public/admin/images/photos/user1.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">John Doe <span class="badge badge-success">new</span></span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="new"><a href="">Read All Mails</a></li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-bell-o"></i> 
                        </a>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <?php  if(is_null($_SESSION['admin_user_info']['img_path'])) { ?>
                            <img src="/Job/Public/admin/images/avatar-mini.jpg" alt="" />
                        <?php }else{ ?>
                            <img src="" alt="" />
                        <?php } ?>
                            <?php echo ($_SESSION['admin_user_info']['nickname']); ?>
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="#"><i class="fa fa-user"></i>个人信息</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i>设置</a></li>
                            <li><a href="<?php echo U('Public/logout');?>"><i class="fa fa-sign-out"></i>退出</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
            <!--notification menu end -->

        </div>

<!-- banner -->

	<div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a hrefPUBLIC="index.html"><img src="/Job/Public/admin/images/logo.png" alt=""></a>
        </div>

        <div class="logo-icon text-center">
            <a hrePUBLICf="index.html"><img src="/Job/Public/admin/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->

        <div class="left-side-inner">

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav" id='nav-pills'>

                <li class="active"><a href="<?php echo U('Index/index');?>"><i class="fa fa-home"></i> <span>首页</span></a></li>
                <li class="menu-list"><a href="javascript:viod"><i class="fa fa-user"></i> <span>用户管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="<?php echo U('User/index');?>">用户列表</a></li>
                        <li><a href="<?php echo U('User/add');?>">添加角色</a></li> 
                        <li><a href="<?php echo U('User/save');?>">修改用户</a></li>
                        <li><a href="<?php echo U('User/save');?>">删除角色</a></li> 
                    </ul>
                </li>
                <li class="menu-list"><a href="javascript:viod"><i class="fa fa-th-list"></i> <span>权限管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="<?php echo U('Role/index');?>">分类列表</a></li>
                        <li><a href="<?php echo U('Role/add');?>">添加角色</a></li>
                        
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>职位管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="<?php echo U('Position/index');?>"> 职位列表</a></li>
                        <li><a href="<?php echo U('Position/add');?>"> 添加职位</a></li>
                        <li><a href="<?php echo U('Position/save');?>"> 修改职位</a></li>
                        <li><a href="<?php echo U('Position/del');?>"> 删除职位</a></li>
                        <li><a href="slider.html"> Slider</a></li>
                        <li><a href="panels.html"> Panels</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-cogs"></i> <span>简历管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="<?php echo U('User/index');?>">简历列表</a></li>
                        <li><a href="<?php echo U('User/index');?>"> 添加简历</a></li>
                        <li><a href="<?php echo U('User/index');?>"> 删除简历</a></li>
                        <li><a href="<?php echo U('User/index');?>"> 修改简历</a></li>


                    </ul>
                </li>

                <li><a href="<?php echo U('Public/demo');?>"><i class="fa fa-bullhorn"></i> <span>demo</span></a></li>

                <li class="menu-list"><a href=""><i class="fa fa-envelope"></i> <span>Mail</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="mail.html"> Inbox</a></li>
                        <li><a href="mail_compose.html"> Compose Mail</a></li>
                        <li><a href="mail_view.html"> View Mail</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href=""><i class="fa fa-tasks"></i> <span>Forms</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="form_layouts.html"> Form Layouts</a></li>
                        <li><a href="form_advanced_components.html"> Advanced Components</a></li>
                        <li><a href="form_wizard.html"> Form Wizards</a></li>
                        <li><a href="form_validation.html"> Form Validation</a></li>
                        <li><a href="editors.html"> Editors</a></li>
                        <li><a href="inline_editors.html"> Inline Editors</a></li>
                        <li><a href="pickers.html"> Pickers</a></li>
                        <li><a href="dropzone.html"> Dropzone</a></li>
                        <li><a href="http://www.weidea.net"> More</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-bar-chart-o"></i> <span>Charts</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="flot_chart.html"> Flot Charts</a></li>
                        <li><a href="morris.html"> Morris Charts</a></li>
                        <li><a href="chartjs.html"> Chartjs</a></li>
                        <li><a href="c3chart.html"> C3 Charts</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>Data Tables</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="basic_table.html"> Basic Table</a></li>
                        <li><a href="dynamic_table.html"> Advanced Table</a></li>
                        <li><a href="responsive_table.html"> Responsive Table</a></li>
                        <li><a href="editable_table.html"> Edit Table</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a href="#"><i class="fa fa-map-marker"></i> <span>Maps</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="google_map.html"> Google Map</a></li>
                        <li><a href="vector_map.html"> Vector Map</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-file-text"></i> <span>Extra Pages</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="profile.html"> Profile</a></li>
                        <li><a href="invoice.html"> Invoice</a></li>
                        <li><a href="pricing_table.html"> Pricing Table</a></li>
                        <li><a href="timeline.html"> Timeline</a></li>
                        <li><a href="blog_list.html"> Blog List</a></li>
                        <li><a href="blog_details.html"> Blog Details</a></li>
                        <li><a href="directory.html"> Directory </a></li>
                        <li><a href="chat.html"> Chat </a></li>
                        <li><a href="404.html"> 404 Error</a></li>
                        <li><a href="500.html"> 500 Error</a></li>
                        <li><a href="registration.html"> Registration Page</a></li>
                        <li><a href="lock_screen.html"> Lockscreen </a></li>
                    </ul>
                </li>
                <li><a href="<?php echo U('Public/login');?>"><i class="fa fa-sign-in"></i> <span>登录页面</span></a></li>

            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <script>
        $navlis = document.getElementById('nav-pills').getElementsByTagName('li');
        
        for(var i=0;i<$navlis.length;i++){

            for(var j=0;j<$navlis.length;j++){
                this.removeClass();
            }
            this.className='active';
        }
    </script>



<div class="main-content" >
<!-- page heading start-->
        <div class="page-heading">
           <!--  <h3>
                Basic Table
            </h3> -->
            <ul class="breadcrumb">
                <li>
                    <a href="#"><?php echo ($line); ?></a>
                </li>
                <li>
                    <a href="#"><?php echo ($line_name); ?></a>
                </li>
            </ul>
        </div>
        <!-- page heading end-->
	<div class="row">
        <div class="col-sm-12">
            <section class="panel">
                <div class="panel">

        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <header class="panel-heading">
                    用户列表
                    <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                </header>
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
                        <button class="btn btn-primary">
                            <a href="<?php echo U('User/add');?>">增加用户</a> <i class="fa fa-plus"></i>
                        </button>
                    </div>
                </div>
                <div class="space15"></div>
                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>用户密码</th>
                    <th>用户昵称</th> 
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
                                <td><?php echo ($vo["id"]); ?></td>
                                <td ><a href="#"><?php echo ($vo["username"]); ?></a></td>
                                <td><?php echo ($vo["password"]); ?></td>
                                <td><?php echo ($vo["nickname"]); ?></td>
                               <td>
                                <?php switch($vo["status"]): case "1": ?><span class="label label-success label-mini">激活</span><?php break;?>
                                    </case>
                                    <?php case "0": ?><span class="label label-danger label-mini">未激活</span><?php break;?>
                                    <?php default: ?>default<?php endswitch;?>
                               </td>
                               <td>
                               <button class='u_del'><a href="<?php echo U('User/del');?>">删除</a></button>
                               <a href=''>权限管理</a>
                               </td><?php endforeach; endif; else: echo "" ;endif; ?>
                </tr>
                
                
                </tbody>
                </table>
                </div>
                </div>
                </section>
                </div>
                </div>
        </div>
		</div>

<!-- Js外部引入 -->

		<!-- Placed js at the end of the document so the pages load faster -->
		<script src="/Job/Public/admin/js/jquery-1.10.2.min.js"></script>
		<script src="/Job/Public/admin/js/jquery-ui-1.9.2.custom.min.js"></script>
		<script src="/Job/Public/admin/js/jquery-migrate-1.2.1.min.js"></script>
		<script src="/Job/Public/admin/js/bootstrap.min.js"></script>
		<script src="/Job/Public/admin/js/modernizr.min.js"></script>
		<script src="/Job/Public/admin/js/jquery.nicescroll.js"></script>
        <!-- Placed js at the end of the document so the pages load faster -->
<!-- <script src="js/jquery-1.10.2.min.js"></script> -->
<!-- <script src="js/jquery-ui-1.9.2.custom.min.js"></script> -->
<!-- <script src="js/jquery-migrate-1.2.1.min.js"></script> -->
<!-- <script src="js/bootstrap.min.js"></script> -->
<!-- <script src="js/modernizr.min.js"></script> -->
<!-- <script src="js/jquery.nicescroll.js"></script> -->

<!--data table-->
<script type="text/javascript" src="/Job/Public/admin/js/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="/Job/Public/admin/js/data-tables/DT_bootstrap.js"></script>



<!--script for editable table-->
<script src="/Job/Public/admin/js/editable-table.js"></script>

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>
		<!--common scripts for all pages-->
		<script src="/Job/Public/admin/js/scripts.js"></script>
<script>
     $(function(){
            $('.u_del').click(function(){
               $this = this;
               id = $this.parentElement.parentElement.cells[0].innerHTML;

               $.ajax({
                type:'get',
                url:"/Job/index.php/Admin/User/del/id/"+id,
                success:function(data){ 
                 if(data == '成功'){
                    index=$this.parentElement.parentElement.rowIndex;
                    $this.parentElement.parentElement.parentElement.deleteRow(index-1);
                 }
            
                },
                error:function(){
                     alert('操作失败,失败！');
                },
            });
        })
    })
    </script>

	 <!--footer section start-->
        <footer>
            2014 &copy; AdminEx by <a href="http://www.mycodes.net/" target="_blank">源码之家</a>
        </footer>
        <!--footer section end-->

</body>
</html>